package com.sali.b_design_pattern.a_simple_factory_pattern.lesson_01;

import com.sali.b_design_pattern.a_simple_factory_pattern.lesson_01.factory.CourseFactory;
import com.sali.b_design_pattern.a_simple_factory_pattern.lesson_01.product.ICourse;

/**
 * @description:
 * @date: 2022/11/13 17:50.
 * @version: 1.0
 */
public class Lesson01Starter {

    public static void main(String[] args) {
        ICourse javaCourse = CourseFactory.getInstance(1);
        javaCourse.record();

        javaCourse.makeNote();

        ICourse appCourse = CourseFactory.getInstance(2);
        appCourse.record();

        appCourse.makeNote();

        ICourse goCourse = CourseFactory.getInstance(3);
        goCourse.record();
        goCourse.makeNote();
    }

}
